package yns.springboot.common.sample.base.service;

import java.util.List;

import yns.springboot.common.sample.base.bean.BaseBean;

public interface BaseService<S extends BaseBean, T extends BaseBean> {

	public int getTotalCount();

	public List<T> getPage(int currentPage, int pageSize);
	
	public List<T> search(int currentPage,int pageSize,T dto);

	public void listEntityToDto(List<S> listEntity, List<T> listDto);

	public void listDtoToEntity(List<T> listDto, List<S> listEntity);
}
